package com.dddframework.data.typehandlers.type;

import cn.hutool.core.collection.CollUtil;

import java.util.ArrayList;
import java.util.List;

public class LongList extends ArrayList<Long> {
    public static final LongList EMPTY_LIST = new LongList();

    public static LongList convert(List<Long> list) {
        if (CollUtil.isEmpty(list)) return LongList.EMPTY_LIST;
        LongList longList = new LongList();
        longList.addAll(list);
        return longList;
    }

    public static List<Long> convert(LongList list) {
        return list;
    }
}
